/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: FinallyReturnDmeo_02
 * Author:   666
 * Date:     2020/6/30 23:18
 * Description: finally中包含return
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package c_008.exception;

/**
 * @Classname FinallyReturnDmeo_02
 * @Description TODO
 * @Date 2020/6/30 23:18
 * @Created by 666
 */
public class FinallyReturnDmeo_02 {
    public static void main(String[] args) {
        System.out.println( add());;

    }
    public  static  int add(){
        int num = 10;
        try {
            System.out.println("try");
            return num+=80;
        } catch (Exception e) {
            System.out.println("error");
        } finally {
            if(num>20){
                System.out.println("finally:"+num);
            }
            num = 100;
            return num;
        }

    }
}
